<div class="blazorise-codeblock">
<div class="html"><pre>
<span class="htmlTagDelimiter">&lt;</span><span class="htmlElementName">FileEdit</span> <span class="htmlAttributeName"><span class="atSign">&#64;</span>ref</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="sharpVariable"><span class="atSign">&#64;</span>fileEdit</span><span class="quot">&quot;</span> <span class="htmlAttributeName">AutoReset</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="keyword">false</span><span class="quot">&quot;</span> <span class="htmlAttributeName">Changed</span><span class="htmlOperator">=</span><span class="quot">&quot;</span><span class="sharpVariable"><span class="atSign">&#64;</span>OnChanged</span><span class="quot">&quot;</span> <span class="htmlTagDelimiter">/&gt;</span>
</pre></div>
<div class="csharp"><pre>
<span class="atSign">&#64;</span>code{
    FileEdit fileEdit;

    Task OnChanged( FileChangedEventArgs e )
    {
        <span class="keyword">return</span> Task.CompletedTask;
    }

    Task OnSomeButtonClick()
    {
        <span class="keyword">return</span> fileEdit.Reset().AsTask();
    }
}
</pre></div>
</div>
